The Dreamweaver JavaScript API > Keyboard functions > mapKeyCodeToChar()

 

mapKeyCodeToChar()

Description

Takes a key code as retrieved from the event object's keyCode field and translates it to a character. You should first check to see if the key code is a special key, such as HOME, PGUP, and so on. If the key code is not a special key, then this method should be used to translate it to a character code suitable for display to the user.

Arguments

keyCode

keyCode is the key code to translate to a character.

Returns

Nothing.